<div class="pageFooter clearfix">
	<div class="bottomNav clearfix">
		<ul>
			<li><a href="{:C('SITE_WAP')}">首页</a></li>
			<li><a href="{:U('Cart/index')}">我的购物车</a></li>
			<li><a href="{:U('CustOrder/index')}">我的订单</a></li>
			<li><a href="{:U('Cust/index')}">我的小屋</a></li>
		</ul>
	</div>
	<div class="searchBar">
		<a href="#" class="gotoTopBtn">回到顶部<i class="whiteArrow"></i></a>
		<form method="get" action="{:U('Product/index')}" name="form_search2" id="form_search2">
			<input type="text" name="name"  maxlength="256"  placeholder="商品名称" value="{$search.name}"/>
			<input type="hidden" name="cate_code"  value="{$search.cate_code}" />
			<button type="button" id="searchProductBtn2">查询</button>
		</form>
	</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$("#searchProductBtn2").on('click',function(e){
		$("#searchProductBtn2").on("click",function(e){
			var formObj = document.forms["form_search2"];
			var formEls = formObj.elements;
			//if(formEls["name"].value==''&&formEls["cate_code"].value==''){
			//	alert('请输入商品名称关键字,或者选择要查询的商品分类');
			//	return false;
			//}
			formObj.action = "{:U('Product/index')}";
			formObj.submit();
		});
	});
});
</script>